<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Tugas Besar 1 PBO IF2032: D:/OOP/tubes1/src/Latar/Latar.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>


</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Tugas Besar 1 PBO IF2032
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.8.0 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('_latar_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">D:/OOP/tubes1/src/Latar/Latar.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_latar_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00009"></a>00009 <span class="preprocessor">#ifndef _LATAR_H</span>
<a name="l00010"></a>00010 <span class="preprocessor"></span><span class="preprocessor">#define _LATAR_H</span>
<a name="l00011"></a>00011 <span class="preprocessor"></span>
<a name="l00012"></a>00012 <span class="preprocessor">#include&lt;iostream&gt;</span>
<a name="l00013"></a>00013 <span class="preprocessor">#include &quot;../Bidang/Bidang.h&quot;</span>
<a name="l00014"></a>00014 
<a name="l00015"></a>00015 <span class="keyword">using namespace </span>std;
<a name="l00016"></a>00016 
<a name="l00017"></a><a class="code" href="class_latar.html">00017</a> <span class="keyword">class </span><a class="code" href="class_latar.html">Latar</a> {
<a name="l00018"></a>00018     <span class="keyword">private</span>:
<a name="l00019"></a>00019         <span class="keywordtype">int</span> Row,Col;
<a name="l00020"></a>00020         <a class="code" href="class_bidang.html">Bidang</a>** Gambar;
<a name="l00021"></a>00021         <span class="keywordtype">int</span> MaxSize, NBidang;
<a name="l00022"></a>00022         <a class="code" href="class_sel.html">Sel</a>* Kertas;        
<a name="l00023"></a>00023     
<a name="l00024"></a>00024     <span class="keyword">public</span>:
<a name="l00030"></a>00030         <a class="code" href="class_latar.html">Latar</a>(<span class="keywordtype">int</span> M = 20, <span class="keywordtype">int</span> N = 40);
<a name="l00031"></a>00031                 
<a name="l00036"></a>00036         <a class="code" href="class_latar.html">Latar</a>(<span class="keyword">const</span> <a class="code" href="class_latar.html">Latar</a>&amp; L);
<a name="l00037"></a>00037                 
<a name="l00044"></a>00044         <a class="code" href="class_latar.html">Latar</a>&amp; operator=(<span class="keyword">const</span> <a class="code" href="class_latar.html">Latar</a>&amp; L);
<a name="l00045"></a>00045         
<a name="l00049"></a>00049         ~<a class="code" href="class_latar.html">Latar</a>();
<a name="l00050"></a>00050                 
<a name="l00051"></a>00051                 
<a name="l00052"></a>00052                 <span class="comment">//Getter</span>
<a name="l00053"></a>00053                 
<a name="l00058"></a>00058         <span class="keywordtype">int</span> GetRow() <span class="keyword">const</span>;
<a name="l00059"></a>00059                 
<a name="l00064"></a>00064         <span class="keywordtype">int</span> GetCol() <span class="keyword">const</span>;
<a name="l00065"></a>00065                 
<a name="l00070"></a>00070         <span class="keywordtype">int</span> GetNOBidang() <span class="keyword">const</span>;
<a name="l00071"></a>00071         
<a name="l00072"></a>00072         <span class="comment">//Predicate</span>
<a name="l00073"></a>00073         
<a name="l00079"></a>00079         <span class="keywordtype">bool</span> IsBidangIn(<span class="keyword">const</span> <a class="code" href="class_bidang.html">Bidang</a>* B);
<a name="l00080"></a>00080         
<a name="l00087"></a>00087         <span class="keywordtype">bool</span> IsPointIn(<span class="keyword">const</span> <a class="code" href="class_point.html">Point</a> P);
<a name="l00088"></a>00088         
<a name="l00089"></a>00089         <span class="comment">//Main operation</span>
<a name="l00090"></a>00090         
<a name="l00096"></a>00096         <span class="keywordtype">void</span> AddBidang(<a class="code" href="class_bidang.html">Bidang</a>* B);
<a name="l00097"></a>00097         
<a name="l00103"></a>00103         <span class="keywordtype">void</span> DelBidang(<span class="keyword">const</span> <a class="code" href="class_bidang.html">Bidang</a>* B);
<a name="l00104"></a>00104         
<a name="l00108"></a>00108         <span class="keywordtype">void</span> CleanPaper(<span class="keywordtype">char</span> = <span class="charliteral">&#39; &#39;</span>);
<a name="l00109"></a>00109                 
<a name="l00114"></a>00114         <span class="keywordtype">void</span> ClearAll();
<a name="l00115"></a>00115         
<a name="l00120"></a>00120         <span class="keywordtype">void</span> Draw(<span class="keywordtype">char</span> = <span class="charliteral">&#39; &#39;</span>);            
<a name="l00121"></a>00121         
<a name="l00126"></a>00126         <span class="keywordtype">void</span> ShowLatar();
<a name="l00127"></a>00127                 
<a name="l00133"></a>00133         <span class="keywordtype">void</span> ComputeC();      
<a name="l00134"></a>00134         
<a name="l00140"></a>00140         <span class="keywordtype">void</span> ComputeS();      
<a name="l00141"></a>00141         <span class="comment">//</span>
<a name="l00142"></a>00142 };
<a name="l00143"></a>00143 
<a name="l00144"></a>00144 <span class="preprocessor">#endif</span>
<a name="l00145"></a>00145 <span class="preprocessor"></span>
</pre></div></div><!-- contents -->
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="_latar_8h.html">Latar.h</a>      </li>

    <li class="footer">Generated on Thu Mar 8 2012 22:46:44 for Tugas Besar 1 PBO IF2032 by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.0 </li>
   </ul>
 </div>


</body>
</html>
